﻿using Hardware.Reactor.Base.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hardware.Reactor.Base.Setting
{
    public class ReactorConfig
    {
        //1号温度采集模块参数
        public ConnectionMode Temp1ReaderMode { get; set; } = ConnectionMode.串口;
        public string Temp1ReaderIP { get; set; } = "192.168.0.1";
        public int Temp1ReaderPort { get; set; } = 502;
        public string Temp1ReaderPortName { get; set; } = "COM1";
        public int Temp1ReaderBaudRate { get; set; } = 9600;


        //2号温度采集模块参数
        public ConnectionMode Temp2ReaderMode { get; set; } = ConnectionMode.网口;
        public string Temp2ReaderIP { get; set; } = "192.168.0.2";
        public int Temp2ReaderPort { get; set; } = 502;
        public string Temp2ReaderPortName { get; set; } = "COM2";
        public int Temp2ReaderBaudRate { get; set; } = 9600;

        //温度控制器
        public ConnectionMode TempControllerMode { get; set; } = ConnectionMode.网口;
        public string TempControllerIP { get; set; }= "192.168.0.3";
        public int TempControllerPort { get; set; } = 502;
        public string TempControllerPortName { get; set; } = "COM3";
        public int TempControllerBaudRate { get; set; } = 9600;


        //电机控制参数
        public ConnectionMode MotionControllerMode { get; set; } = ConnectionMode.网口;
        public string MotionControllerIP { get; set; } = "192.168.0.4";
        public int MotionControllerPort { get; set; } = 502;
        public string MotionControllerPortName { get; set; } = "COM4";
        public int MotionControllerBaudRate { get; set; } = 9600;
    }
}
